class Vue {
    constructor(options){
        this.$options = options
        this.$el = this.getDom(options.el)
        this.$data = options.data
        Object.assign(this,options.methods,this.$data)
        new Observer(this.$data)
        new Compile(this)
    }

    getDom(obj){
        if(typeof obj === 'string'){
            return document.querySelector(obj)
        }else{
            return obj
        }
    }

    // proxyData(){
    //     return new Observer(this.$data)
    // }
}